﻿#ifndef _BRICKQUESTION_H_
#define _BRICKQUESTION_H_

#include "Object.h"
#include "Sprite.h"

#define GRAVITY		0.01

class BrickQuestion : public Object
{
	float _xOld;
	float _yOld;


	

	//float _accelY;

	bool isMoveUp;			//kiem tra gach co duoc day len chua?

	 
public:
	/*
	 *	Constructor/ Destructor
	 */
	BrickQuestion(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State);
	~BrickQuestion();

	/*
	 *	Method
	 */
	/*void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);*/

	void render(int cameraX, int cameraY);
	void update(list<Object*>* obj_list, DxInput* input, float TPF);

	OBJECT_TYPE getObjectType();
	//void ResetRect();
	void changeState(int state);
};

#endif